<?php 
/*************************************************************************************
 *
 *	FileName: header_php.php
 *	Desc    : get content of the sended letter
 *	Author  : Seal
 *	Date    : 2010-1-10
 *
 *************************************************************************************/
	
	if( !isset($_POST['id']) || !is_numeric($_POST['id']) )
	{
		echo "错误：没有指定任何有效邮件";
		edp_exit();
	}
	
	$uid = GetLoginUserID();
	if($uid===false)
	{
		echo "非法的站内信操作";
		edp_exit();
	}
	else
	{
		$id = intval( $_POST['id'] );
						
		$letterDAO = GetLetterDAO();
		
		$letterContent = $letterDAO->GetOutLetterContent( edp_db_input($id), $uid );
		
		secho( $letterContent );
	}
?>